package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * boot-queue队列的监听器
 * @author 千锋健哥
 */
@Component
public class BootQueueListener {

    @RabbitListener(queues = "boot-queue")
    public void messageHandler(String msg) {
        System.out.println(msg);
    }
}
